FROM registry.cn-hangzhou.aliyuncs.com/zyzbp/openjdk:8-jdk

MAINTAINER wangx iamwx@foxmail.com

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone
# 复制 msyh.ttc 到容器中的字体目录
COPY msyh.ttc /usr/share/fonts/
# 可选：刷新系统字体缓存
RUN fc-cache -fv

COPY zbp-audit-server.jar /app.jar

ENTRYPOINT ["java", "-Xmx1g", "-Djava.security.egd=file:/dev/./urandom", "-Ddruid.mysql.usePingMethod=false", "-jar", "/app.jar"]